/**
 * Sonatype Nexus (TM) Open Source Version
 * Copyright (c) 2008-present Sonatype, Inc.
 * All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
 *
 * This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0,
 * which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
 *
 * Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks
 * of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the
 * Eclipse Foundation. All other trademarks are the property of their respective owners.
 */
@use '~@sonatype/react-shared-components/scss-shared/nx-container-helpers';
@use '~@sonatype/react-shared-components/scss-shared/nx-text-helpers';

.nxrm-repositories, .nxrm-browse {
  .nxrm-repositories-list, .nxrm-browse-list {
    .nxrm-health-check-indicators {
      margin: 0;

      .nx-icon {
        margin: 0 var(--nx-spacing-base) 0 0;
      }
      .nx-icon:nth-child(2) {
        margin-left: var(--nx-spacing-2x);
      }
    }

    .nxrm-rhc-analyze-btn-enabled {
      color: var(--nx-swatch-blue-40);
    }

    .nxrm-rhc-analyze-btn-disabled {
      color: var(--nx-swatch-grey-60);
    }

    .nxrm-rhc-loading-lbl,
    .nxrm-rhc-analyzing-lbl {
      color: var(--nx-swatch-grey-30);
    }

    .nxrm-rhc-loading-error {
      color: var(--nx-swatch-red-40);
      font-size: var(---nx-font-size-s);

      .nx-icon {
        margin-left: 0;
      }
    }

    .nxrm-iq-policy-violations-counters {
        display: flex;
        white-space: nowrap;

        .nx-text-link {
            margin-left: var(--nx-spacing-base);
        }
    }

    .nxrm-unavailable-icon {
      color: var(--nx-swatch-grey-50);
    }

    .nxrm-health-check-summary {
      position: absolute;
      right: 24px;
      border: 1px solid var(--nx-swatch-grey-50);
      border-radius: 8px;
      padding: 16px;
      background-color: white;
      z-index: 100;

      .nx-h2 {
        text-align: left;
        margin-top: 0;
      }
    }

    .nxrm-table-cell-centered {
      .nxrm-health-check-summary {
        .nx-btn-bar {
          justify-content: flex-end;
          margin: var(--nx-spacing-2x) 0 0;
        }
      }
    }
  }

  .nxrm-enable-health-check-modal.nx-modal {
    overflow-y: visible;
  }
}
